import request from "@/utils/request";

export function queryTargetDatabaseConfigListByConditionMap2(data) {
  return request({
    url: 'api/efficiencyTools/targetDatabaseConfig/queryTargetDatabaseConfigListByConditionMap2',
    method: 'get',
    params: data,
  })
}

export function downloadDataToExcel(data) {

  return request({
    url: 'api/efficiencyTools/targetDatabaseConfig/downloadTargetDatabaseConfigListByCondition',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}


export function queryTargetDatabaseConfigByCondition(data) {
  return request({
    url: 'api/efficiencyTools/targetDatabaseConfig/queryTargetDatabaseConfigByCondition',
    method: 'get',
    params: data,
  })
}

export function queryTargetDatabaseConfigIdList() {
  return request({
    url: 'api/efficiencyTools/targetDatabaseConfig/queryTargetDatabaseConfigIdList',
    method: 'get',
  })
}


export function updateTargetDatabaseConfig(data) {
  return request({
    url: 'api/efficiencyTools/targetDatabaseConfig/updateTargetDatabaseConfig',
    method: 'post',
    data: data,
  })
}

export function saveTargetDatabaseConfigSingleLineData(data) {
  return request({
    url: 'api/efficiencyTools/targetDatabaseConfig/saveTargetDatabaseConfigSingleLineData',
    method: 'post',
    data: data,
  })
}

export function deleteTargetDatabaseConfigByIntegerIdList(data) {
  return request({
    url: 'api/efficiencyTools/targetDatabaseConfig/deleteTargetDatabaseConfigByIntegerIdList',
    method: 'delete',
    params: data,
  })
}

export function insertByExcel(data) {
  return request({
    url: '/api/efficiencyTools/targetDatabaseConfig/insertByExcel',
    method: 'post',
    data: data
  })
}
